<?php

class Forum_Model_DbTable_Posts extends Zend_Db_Table_Abstract
{
  protected $_name = 'forum_posts';

  public function getPosts($topic_id)
  {
    return $this->fetchAll($this->select()
      ->where('topic_id = ?', $topic_id)
      ->order('creation_date DECS')
    );
  }

}

